/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7fa;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    padding: 20px; /* Added padding to avoid body content sticking to edges */
    overflow: hidden; /* Ensures no overflow on smaller screens */
  }
  
  /* Watermark */
  .watermark {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0.1;
    font-size: 5rem; /* Increased size for modern feel */
    color: #333;
    font-family: 'Montserrat', sans-serif;
    pointer-events: none; /* Makes watermark not interactable */
  }
  
  /* Main Container */
  .speech-to-text {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Slightly enhanced shadow for modern look */
    padding: 30px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't mess with the width */
    margin: auto; /* Centers the container */
  }
  
  .speech-to-text h1 {
    color: #3a3a3a;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
  }
  
  .speech-to-text p {
    color: #777;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6; /* Improve readability */
  }
  
  textarea#text-output {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    padding: 12px;
    font-size: 1.2rem;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 8px;
    resize: none;
    background-color: #fafafa;
    transition: border-color 0.3s ease;
  }
  
  textarea#text-output:focus {
    border-color: #4CAF50;
    outline: none;
  }
  
  /* Buttons */
  button {
    background-color: #4CAF50;
    color: white;
    font-size: 1rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  button:hover {
    background-color: #45a049;
  }
  
  button:active {
    background-color: #397d39;
    transform: scale(0.98); /* Slightly shrink button on click */
  }
  
  /* Footer */
  .footer {
    position: absolute;
    bottom: 20px;
    font-size: 1rem;
    color: #333;
    font-weight: bold;
  }
  
  .footer a {
    color: #4CAF50;
    text-decoration: none;
  }
  
  .footer a:hover {
    text-decoration: underline;
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    /* Adjust text size and padding for tablets and small screens */
    .speech-to-text h1 {
      font-size: 2rem;
    }
  
    .speech-to-text p {
      font-size: 0.9rem;
    }
  
    textarea#text-output {
      height: 180px; /* Adjust height for smaller screens */
    }
  
    button {
      padding: 10px 20px;
      font-size: 0.9rem;
    }
  
    /* Footer adjustments */
    .footer {
      font-size: 0.9rem;
    }
  }
  
  @media (max-width: 480px) {
    /* Mobile Styles */
    body {
      padding: 10px; /* Reduced padding on mobile */
    }
  
    .speech-to-text {
      padding: 15px;
      width: 100%;
      max-width: 100%; /* Ensure full width on mobile */
    }
  
    .speech-to-text h1 {
      font-size: 1.8rem; /* Smaller heading for mobile */
    }
  
    .speech-to-text p {
      font-size: 0.85rem;
    }
  
    textarea#text-output {
      height: 150px;
    }
  
    button {
      padding: 8px 16px;
      font-size: 0.85rem;
    }
  
    /* Watermark adjustment */
    .watermark {
      font-size: 4rem; /* Resize watermark for smaller screens */
    }
  }
  